package com.zhaotianhao.utils;

import org.springframework.util.DigestUtils;

public class MD5Utils {

    private  static  final   String salt ="1ss@2sad#fasdfasdfa";

    public static  String md5Encode(String pwd){
        pwd+=salt;
        String newPwd = DigestUtils.md5DigestAsHex(pwd.getBytes());
        return newPwd ;
    }
}
